package com.qqtop10.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qqtop10.manager.dao.FooterInfoMapper;
import com.qqtop10.manager.model.FooterInfo;
import com.qqtop10.manager.service.FooterInfoService;

@Service("footerInfoService")
public class FooterInfoServiceImpl implements FooterInfoService {

	@Autowired
	private FooterInfoMapper footerInfoMapper;

	@Override
	public int insertInfo(FooterInfo footerInfo) {
		return footerInfoMapper.insertInfo(footerInfo);
	}

	@Override
	public boolean deleteInfo(int type) {
		return footerInfoMapper.deleteInfo(type) == 0 ? false : true;
	}

	@Override
	public List<FooterInfo> getShowInfo() {
		return footerInfoMapper.getShowInfo();
	}

	@Override
	public FooterInfo getInfoDetailed(FooterInfo footerInfo) {
		return footerInfoMapper.getInfoDetailed(footerInfo);
	}

	@Override
	public int updateInfoDetailed(FooterInfo footerInfo) {
		return footerInfoMapper.updateInfoDetailed(footerInfo);
	}

}
